﻿@using Controllers
@{
    var func=new MyFunc();
}
<!DOCTYPE html>
<html>
<head>
@Html.Partial("_top")

</head>
<body>
<div class="wrap pb_5">
@Html.Partial("_header")
	
	<div id="headlines" class="mt10">	
                  		@{var toutiao=func.GetList(1,1,"n");}
                    @for(var i=0;i<toutiao.Count;i++){	
                      var item=toutiao[i];
                      var url=string.IsNullOrEmpty(item.url)?"/article/"+item.ID:item.url;
                      var target=string.IsNullOrEmpty(item.url)?"_selft":"_blank";
                      <h1><a href="@url" title="@item.title" traget="@target">@item.title</a></h1>
					  <h2>@(item.body)[<a href="@url" title="@item.title" traget="@target">查看详情</a>]</h2>
                    } 
	</div>
	<div class="p10">
		<h1 class="tit_1"><span class="current">通知公告</span><a class="more current" href="/list/9">MORE>></a></h1>
		<ul class="list_1 mt10">
			@{var tzgg=func.GetList(9,9,"");}
                    @for(var i=0;i<tzgg.Count;i++){	
                      var item=tzgg[i];
                      var url=string.IsNullOrEmpty(item.url)?"/article/"+item.ID:item.url;
                      var target=string.IsNullOrEmpty(item.url)?"_selft":"_blank";
									<li><a href="@url" title="@item.title" traget="@target">
										@(item.title.Length>20?item.title.Substring(0,20):item.title)</a></li>		
                    } 
		</ul>
	</div>
	<a href="#"><img src="@ViewBag.model.skin/mobile/images/jswmzl-1.png" class="img-w" /></a>
	<div class="p10">
		<h1 class="tit_1"><span class="current">政务信息</span><span>政务服务</span><a class="more current" href="/list/8">MORE>></a><a href="/list/16" class="more">MORE>></a></h1>
		<ul class="list_1 mt10">
				@{var hzwxx=func.GetList(9,8,"");}
                    @for(var i=0;i<hzwxx.Count;i++){	
                      var item=hzwxx[i];
                      var url=string.IsNullOrEmpty(item.url)?"/article/"+item.ID:item.url;
                      var target=string.IsNullOrEmpty(item.url)?"_selft":"_blank";                      
									<li><a href="@url" title="@item.title" traget="@target">@item.title</a><span>@item.addtime.ToString("yyyy-MM-dd")</span></li>	
                    } 
		</ul>
		<ul class="list_1 mt10 hide">
			@{var hzwfw=func.GetList(9,16,"");}
				@for(var i=0;i<hzwfw.Count;i++){	
				  var item=hzwfw[i];
				  var url=string.IsNullOrEmpty(item.url)?"/article/"+item.ID:item.url;
				  var target=string.IsNullOrEmpty(item.url)?"_selft":"_blank";                      
								<li><a href="@url" title="@item.title" traget="@target">@item.title</a><span>@item.addtime.ToString("yyyy-MM-dd")</span></li>	
				} 
		</ul>
	</div>
	<a href="#"><img src="@ViewBag.model.skin/mobile/images/lygy-1.png" class="img-w" /></a>
	<div class="p10">
		<h1 class="tit_1"><span class="current">权责清单</span><span>政策法规</span><a class="more current" href="/list/6">MORE>></a><a href="/list/5" class="more">MORE>></a></h1>
		<ul class="list_1 mt10">
			
                  		@{var hqzqd=func.GetList(9,6,"");}
                    @for(var i=0;i<hqzqd.Count;i++){	
                      var item=hqzqd[i];
                      var url=string.IsNullOrEmpty(item.url)?"/article/"+item.ID:item.url;
                      var target=string.IsNullOrEmpty(item.url)?"_selft":"_blank";                      
								<li><a href="@url" title="@item.title" traget="@target">@item.title</a><span>@item.addtime.ToString("yyyy-MM-dd")</span></li>
                    } 
		</ul>
		<ul class="list_1 mt10 hide">
			@{var hzcfg=func.GetList(9,5,"");}
                    @for(var i=0;i<hzcfg.Count;i++){	
                      var item=hzcfg[i];
                      var url=string.IsNullOrEmpty(item.url)?"/article/"+item.ID:item.url;
                      var target=string.IsNullOrEmpty(item.url)?"_selft":"_blank";                      
								<li><a href="@url" title="@item.title" traget="@target">@item.title</a><span>@item.addtime.ToString("yyyy-MM-dd")</span></li>
                    } 
		</ul>
	</div>
	<a href="#"><img src="@ViewBag.model.skin/mobile/images/lylh-1.png" class="img-w" /></a>
	<div class="p10">
		<h1 class="tit_1"><span class="current">双公示</span><span>行政许可</span><a class="more current" href="/list/12">MORE>></a><a class="more" href="/list/10">MORE>></a></h1>
		<ul class="list_1 mt10">
                  		@{var hsgs=func.GetList(9,12,"");}
                    @for(var i=0;i<hsgs.Count;i++){	
                      var item=hsgs[i];
                      var url=string.IsNullOrEmpty(item.url)?"/article/"+item.ID:item.url;
                      var target=string.IsNullOrEmpty(item.url)?"_selft":"_blank";                      
								<li><a href="@url" title="@item.title" traget="@target">@item.title</a><span>@item.addtime.ToString("yyyy-MM-dd")</span></li>
                    } 
		</ul>
		<ul class="list_1 mt10 hide">
			
                  		@{var hxzxk=func.GetList(9,10,"");}
                    @for(var i=0;i<hxzxk.Count;i++){	
                      var item=hxzxk[i];
                      var url=string.IsNullOrEmpty(item.url)?"/article/"+item.ID:item.url;
                      var target=string.IsNullOrEmpty(item.url)?"_selft":"_blank";                      
								<li><a href="@url" title="@item.title" traget="@target">@item.title</a><span>@item.addtime.ToString("yyyy-MM-dd")</span></li>
                    } 
		</ul>
	</div>

	<h1 class="tit_2 p0-10 mt10"><span>风采展示</span></h1>	
	<ul id="fczslist" class="cl">
	@{var hfczs=func.GetList(6,11,"");}
	@for(var i=0;i<hfczs.Count;i++){	
	  var item=hfczs[i];
	  var url=string.IsNullOrEmpty(item.url)?"/article/"+item.ID:item.url;
	  var target=string.IsNullOrEmpty(item.url)?"_selft":"_blank";                      
					<li><a href="@url" title="@item.title" traget="@target"><img src="@item.pic" alt="@item.title" /></a></li>	               
	} 
	</ul>
	
	<div id="copyright">
		@Html.Raw(ViewBag.model.copyright)
	</div>
	
</div>
	
@Html.Partial("_footer")



	<script type="text/javascript">
		$(function(){
			$(".nav ul li").eq(0).children("a").addClass("current");
			
	$(".p10 .tit_1 span").click(function(){
		var index=$(".p10 .tit_1 span").index(this);
		$(".p10 .tit_1 span").eq(index).addClass("current").siblings("span").removeClass("current");
		$(".p10 .tit_1 a").eq(index).addClass("current").siblings("a").removeClass("current");
		$(".p10 ul.list_1").eq(index).removeClass("hide").siblings("ul").addClass("hide");
	})
		})
	</script>

</body>
</html>